package cn.pegasus.teamwork.appinterface.util;

import java.util.HashMap;
import java.util.Map;

import cn.iyizhan.teamwork.base.util.ReadPro;

/**
 * 推送消息类
 * @author Administrator
 *
 */
public class PushVO {
	
	Map<String,String> map = new HashMap<String, String>(); 
	
	
	public void init(String appCode){
		String sys = System.getProperties().getProperty("os.name");
		String path = null;
		String[] value = null;
		//IOS版本
		path = ReadPro.getValue("IOS_"+appCode);
		value = path.split("#");
		if(sys.contains("Win")){
			this.map.put("iosPath", value[0]);
		}else{
			this.map.put("iosPath", value[1]);
		}
		this.map.put("iosPassword", value[2]);
		//安卓版本
		path = ReadPro.getValue("AND_"+appCode);
		value = path.split("#");
		this.map.put("androidSecretKey", value[0]);
		this.map.put("androidAppKey", value[1]);
	}


	/**
	 * @return the map
	 */
	public Map<String, String> getMap() {
		return map;
	}


	/**
	 * @param map the map to set
	 */
	public void setMap(Map<String, String> map) {
		this.map = map;
	}
	
	

}
